package com.itheima.zy;


import java.util.Random;
import java.util.Scanner;

public class Test8 {
    public static void main(String[] args) {
        Random rand = new Random();
        int a = rand.nextInt(100) +1;
        System.out.println("猜我是几：");
        Scanner sc = new Scanner(System.in);
        while (true){
            int b= sc.nextInt();
            if (b >a){
                System.out.println("大");
            }else if (b<a){
                System.out.println("小了");
            } else {
                System.out.println("对");
                break;
            }
        }


    }
}
